/* constant */
@rem: 25rem;
/* 样式1 */
.style1 {
  /* 轮播 */
  .carousel {
    height: 200/@rem;
    img {
      display: block;
      width: 100%;
    }
  }

  /* 搜索 */
  .search {
    width: 100%;
    height: 50/@rem;
    background: #fff;
    position: relative;
    z-index: 1000;

    .search-group {
      position: absolute;
      top: -20/@rem;
      left: 2.5%;
      width: 90%;
      overflow: hidden;
      margin: 0 auto;
      background: #fff;
      border-radius: 5/@rem;
      padding: 10/@rem;
      display: flex;
      box-shadow: 0 0 5/@rem #333;

      .ons-col {
        height: 30/@rem;
        margin: 0;
        padding: 0;
      }
      .ons-col:nth-child(1) {
        width: 30/@rem;
      }
      .ons-col:nth-child(2) {
        flex: 1;
      }
      .ons-col:nth-child(3) {
        width: 80/@rem;
      }

      img {
        display: block;
        height: 20/@rem;
        width: 20/@rem;
        margin: 5/@rem;
      }

      .input {
        width: 100% !important;
        height: 30/@rem;
        font-size: 12/@rem;
        margin: 0;
        padding: 0;
        border: none;
        position: relative;
        top: -3/@rem;
      }

      .button {
        width: 100%;
        height: 30/@rem;
        line-height: 30/@rem;
        background: #20AD20;
        color: #FFF;
        font-size: 10/@rem;
        margin: 0;
        padding: 0;
      }
    }

  }

  /* 系统通知 */
  .notice {
    height: 50/@rem;
    background: #fff;
    margin-bottom: 15/@rem;
    .notice-item {
      display: flex;
      line-height: 50/@rem;
      font-size: 12/@rem;
      img {
        display: block;
        height: 20/@rem;
        width: 20/@rem;
        margin: 15/@rem;
      }
    }
  }

  /* 入口 */
  .ingress {
    background: #FFF;
    overflow: hidden;
    .tab-bar {
      width: 100%;
      height: 50/@rem;
      line-height: 50/@rem;
      display: flex;
      font-size: 12/@rem;

      button {
        flex: 1;
        background: none;
        border: none;
        color: #333333;
      }
      .active {
        border-bottom: 1px solid #2ddd11;
      }
    }

    .ingress-group {
      overflow: auto;

      .ingress-item {
        width: 82/@rem;
        font-size: 12/@rem;
        overflow: hidden;
        padding: 10/@rem;
        float: left;
        margin: 10/@rem;
        border: 1px solid #ddd;
        border-radius: 5/@rem;

        img {
          width: 50/@rem;
          height: 50/@rem;
        }
        p {
          margin: 10/@rem 0 0;
        }
      }
    }
  }
}

/* 样式2 */
.style2 {
  .head {
    height: 260/@rem;
    background: url('../../resource/consumer/home/style2/bg.png') no-repeat;
    background-size: cover;
    overflow: hidden;

    .address {
      font-size: 12/@rem;
      color: #FFFFFF;
      margin: 15/@rem;
      img {
        height: 10/@rem;
        margin-right: 15/@rem;
      }
    }

    .user-tip {
      font-size: 12/@rem;
      margin: 15/@rem;
      line-height: 20/@rem;
      background: #FFFFFF;
      display: flex;
      justify-content: center;
      width: 180/@rem;
      border-radius: 50/@rem;
      margin: 0 auto;
      img {
        width: 20/@rem;
        height: 25/@rem;
        margin-right: 10/@rem;
        margin-top: 10/@rem;
      }
    }

    .user-swiper {
      height: 140/@rem;
      background: url("../../resource/consumer/home/style2/swiper-bg.png") no-repeat;
      background-size: cover;
      margin: 20/@rem 15/@rem 15/@rem;
      border-radius: 20/@rem;
      .scroll-view {
        .ingress-item {
          width: 125/@rem;
          height: 105/@rem;
          img {
            width: 60/@rem;
            margin: 20/@rem 0 0;
          }
          p {
            margin: 0;
            padding: 0;
            font-size: 12/@rem;
          }
        }
      }
      .scroll-icon-group {
        .scroll-icon-item {
          width: 8/@rem;
          height: 8/@rem;
          border-radius: 8/@rem;
          background: #ff3a5d;
          display: inline-block;
          margin: 0 3/@rem;
          transition: all .5s ease 0s;
        }
        .active {
          width: 15/@rem;
        }
      }
    }
  }
  .map {
    width: 100%;
    height: 300/@rem;
  }
}

/* 样式3 */
.style3 {
  .head {
    position: relative;
    .map {
      width: 100%;
      height: 350/@rem;
    }

    /* 系统通知 */
    .notice {
      height: 40/@rem;
      background: #fff;
      border-radius: 40/@rem;
      position: absolute;
      top: 300/@rem;
      width: 95%;
      margin: 0 2.5%;
      .notice-item {
        display: flex;
        line-height: 40/@rem;
        font-size: 12/@rem;
        img {
          display: block;
          height: 20/@rem;
          width: 20/@rem;
          margin: 12/@rem 10/@rem;
        }
      }
    }

    /* 当前位置 */
    .local {
      width: 40/@rem;
      position: absolute;
      left: 2.5%;
      top: 250/@rem;
    }
  }

  .ingress-group{
    overflow: hidden;
    margin-bottom: 10/@rem;
    .ingress-item {
      width: 172/@rem;
      height: 80/@rem;
      background: url("../../resource/consumer/home/style3/ingress-bg1.png");
      background-size: cover;
      float: left;
      margin: 10/@rem 0 0 10/@rem;
      text-align: left;
      h3,p{
        margin: 0 0 0 25/@rem;
        padding: 0;
      }
      h3{
        font-size: 20/@rem;
        margin-top: 10/@rem;
        margin-bottom: 10/@rem;
      }
      p {

        font-size: 12/@rem;
      }
    }
  }
}
